<template>
  <div class="data-table">
    <el-table :data="datatab" border style="width: 100%">
      <el-table-column prop="date" label="交易日期" width="150"></el-table-column>
      <el-table-column prop="name" label="店名/昵称" width="120"></el-table-column>
      <el-table-column prop="sku" label="交易流水号/任务编号" width="240"></el-table-column>
      <el-table-column prop="type" label="财务类型"></el-table-column>
      <el-table-column prop="money" label="收/支金额" width="100"></el-table-column>
      <el-table-column label="账户信息" width="101">
        <template v-slot="{ row }">
          <span>{{ row.yu }}</span>
          <span>{{ row.yi }}</span>
        </template>
      </el-table-column>
      <el-table-column prop="msg" label="交易备注" width="190"></el-table-column>
      <el-table-column prop="statu" label="交易状态"></el-table-column>
      <el-table-column label="操作">
        <router-link to>查看详情</router-link>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: {
    datatab: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.data-table {
  padding: 0 30px;
}
</style>
